﻿<%@ Page Title="" Language="C#" MasterPageFile="~/news/NewMaster.master" AutoEventWireup="true"
    CodeBehind="list.aspx.cs" Inherits="ZF.WS.news.list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="location mb10_">
        您现在的位置：<a href="/"><%=SiteInfo.Instance.SystemConfig.SiteName %></a> >> <a href="list.aspx">
            新闻列表</a>
    </div>
    <%--<zf:ListView ID="lvNews" runat="server">
        <LayoutTemplate>
            <table>
                <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                </zf:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <%#Container.DataItemIndex % 2 == 0 ? "<tr>" : "" %>
            <td style="width: 50%; vertical-align: top;">
                <div class="board news   ">
                    <dl>
                        <dt>
                            <p>
                                <%#Eval("Key") %></p>
                        </dt>
                        <dd>
                            <ul>
                                <zf:ListView ID="lvTitle" runat="server"  >
                                    <LayoutTemplate>
                                        <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                                        </zf:PlaceHolder>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <li class="<%# Container.DataItemIndex==0?"frist":"" %>"><a href="/news/index.aspx?id=<%# Eval("NewsId")%>">
                                            <%# Eval("Title") %></a> <span>[<%# ((DateTime)Eval("AddTime")).Month %>-<%# ((DateTime)Eval("AddTime")).Day %>]</span>
                                        </li>
                                    </ItemTemplate>
                                </zf:ListView>
                            </ul>
                        </dd>
                    </dl>
                </div>
            </td>
            <%#Container.DataItemIndex % 2 == 1 ? "</tr>" : "" %>
        </ItemTemplate>
    </zf:ListView>--%>
 
    <style>
        
        .nnews1 dl dd ul li { overflow: hidden; text-align:left; }
        .nnews1 dl li { list-style: square; padding-left: 20px; background: url(/image/bp.gif) no-repeat 5px 11px; }
        .nnews1 dl li a { color: #666; line-height: 25px; height: 25px; }
    </style>
    <div class="board   nnews1  " style="width:710px">
        <dl>
            <dt>
                <p>
                    <%=this.Type.EmptyString("新闻") %></p>
            </dt>
            <dd> 
                <ul> 
                    <zf:ListView runat="server" ID="lvNews">
                        <LayoutTemplate>
                            <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                            </zf:PlaceHolder>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <li class="<%# Container.DataItemIndex==0?"frist":"" %>"><a href="/news/index.aspx?id=<%# Eval("NewsId")%>">
                                <%# ((string)Eval("Title")).MaxLength(30) %></a> <span>[<%# ((DateTime)Eval("AddTime")).Month %>-<%# ((DateTime)Eval("AddTime")).Day %>]</span>
                            </li>
                        </ItemTemplate>
                    </zf:ListView>
                </ul>
            </dd>
        </dl>
    </div>
</asp:Content>
